const { defineConfig } = require("@vue/cli-service");
const webpack = require("webpack");
const { resolve } = require("path");
module.exports = defineConfig({
  transpileDependencies: true,
  productionSourceMap: false,
  lintOnSave: false,
  publicPath: "./",
  configureWebpack: {
    plugins: [
      new webpack.DefinePlugin({
        __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(false),
      }),
    ],
    resolve: {
      alias: {
        "@": resolve(__dirname, "./src"),
        "@components": resolve(__dirname, "./src/components"),
      },
    },
  },
  devServer: {
    client: {
      overlay: false,
    },
    port: 3344,
    open: false,
    proxy: {
      "/api": {
        target: 'https://10.10.102.139:8090', //淮南
        // target: "https://59.203.83.242:8090", //淮北
        // target: "http://172.17.209.105:8087",
        changeOrigin: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
});
